package com.usian.login.service;

import com.usian.common.ResultVo;
import com.usian.login.pojo.TbUser;

public interface LoginService {

    /**
     * 发送登录短信验证码
     * @param phone
     * @return
     */
    public ResultVo sendCode(String phone) throws Exception;

    /**
     * 手机验证登录
     * @param phone
     * @return
     */
    ResultVo userLogin(String phone, String code) throws Exception;

    ResultVo save(TbUser tbUser);
}
